package com.glory.dmegcpda.bean;

import java.io.Serializable;
import java.util.UUID;

/**
 * @author Hx
 * @date 2020/1/31
 * @desc 网络请求/回复header
 */

public class HeaderBean implements Serializable {

    private String TRANSACTIONID; //请求唯一代码
    private String MESSAGENAME;
    private String USERNAME;
    private String ORGRRN;
    private String RESULT;
    private String RESULTMESSAGE;
    private String RESULTCODE;
    private String ORGNAME;
    private String LANGUAGE;

    public String getLANGUAGE() {
        return LANGUAGE == null ? "" : LANGUAGE;
    }

    public void setLANGUAGE(String LANGUAGE) {
        this.LANGUAGE = LANGUAGE;
    }

    public HeaderBean(String MessageName, String userName, String orgName, String orgrrn) {
        this.MESSAGENAME = MessageName;
        this.ORGRRN = orgrrn;
        this.TRANSACTIONID = UUID.randomUUID().toString().substring(0,20);
        this.USERNAME = userName;
        this.ORGNAME = orgName;
        this.LANGUAGE = "ZH";
    }

    public HeaderBean() {
    }

    public String getTRANSACTIONID() {
        return TRANSACTIONID;
    }

    public String getMESSAGENAME() {
        return MESSAGENAME;
    }

    public String getUSERNAME() {
        return USERNAME;
    }

    public String getORGRRN() {
        return ORGRRN;
    }

    public String getRESULT() {
        return RESULT;
    }

    public String getRESULTMESSAGE() {
        return RESULTMESSAGE;
    }

    public String getRESULTCODE() {
        return RESULTCODE;
    }

    public String getORGNAME() {
        return ORGNAME;
    }

    public void setORGNAME(String ORGNAME) {
        this.ORGNAME = ORGNAME;
    }

    public void setTRANSACTIONID(String TRANSACTIONID) {
        this.TRANSACTIONID = TRANSACTIONID;
    }

    public void setMESSAGENAME(String MESSAGENAME) {
        this.MESSAGENAME = MESSAGENAME;
    }

    public void setUSERNAME(String USERNAME) {
        this.USERNAME = USERNAME;
    }

    public void setORGRRN(String ORGRRN) {
        this.ORGRRN = ORGRRN;
    }

    public void setRESULT(String RESULT) {
        this.RESULT = RESULT;
    }

    public void setRESULTMESSAGE(String RESULTMESSAGE) {
        this.RESULTMESSAGE = RESULTMESSAGE;
    }

    public void setRESULTCODE(String RESULTCODE) {
        this.RESULTCODE = RESULTCODE;
    }
}
